<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        @keyframes mo {
            0% {
                transform: translate(0, 0) rotate(90deg);
            }
            25% {
                transform: translate(1200px, 0) rotate(180deg);
            }
            50% {
                transform: translate(1200px, 600px) rotate(360deg);
            }
            75% {
                transform: translate(0, 600px) rotate(180deg);
            }
            100% {
                transform: translate(0, 0) rotate(0deg);
            }
        }
        
        div {
            width: 200px;
            height: 200px;
            background-color: cadetblue;
            animation-name: mo;
            animation-duration: 20s;
        }
    </style>
</head>

<body>
    <div></div>
</body>

</html>